package day06;

public class OverlodeDemo {
    public static void main(String[] args) {
        say();
        say("zpy");
        say("zpy", 23);

    }

    public static void say() {
        System.out.println("hello");
    }

    public static void say(String name) {
        System.out.println(name + "hello");
    }

    public static void say(String name, int age) {
        System.out.println(name + "hello" + age);
    }

//    public static int say(){------------方法重载与返回值类型无关
//        return 0;
//    }

//    public static void say(String address){---方法重载与参数名称无关
//
//    }

}
